# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

pkgname=python-svgwrite
_pkgname=svgwrite
pkgver=1.4.3
pkgrel=2
pkgdesc='A Python library to create SVG drawings'
arch=('any')
url='https://github.com/mozman/svgwrite'
license=('MIT')
depends=('python' 'python-pyparsing')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('3e599c13c2138aec1f9098baf3cf978b477f45ec2acd14d6aaadbcdf952064dac6313fd26050e670e9e989867c3539fa1cc7fb1cd226e34ff9f2a1ca2e7ddeff')

build() {
  cd $_pkgname-$pkgver

  python -m build -nw
}

#check() {
#  cd $_pkgname-$pkgver
#
#  python setup.py test
#}

package() {
  cd $_pkgname-$pkgver

  python -m installer -d "$pkgdir" dist/*.whl
}
